<?php

namespace App\Http\Controllers;

use DB;
use Illuminate\Http\Request;

class UserController extends Controller
{
    /**
     * Create a new controller instance.
     *
     * @return void
     */
    public function __construct()
    {
        $this->middleware('auth');
    }
    
    //
    public function index()
    {
        
        $users = DB::table('users')->paginate(10);

        $count = DB::table('users')->count();

        return view('admin.user-manage', [
            'users' => $users,
            'count' => $count,
            ]);
    }
}
